import request from '@/utils/request'
// 获取文章列表
export const getArticleListApi = data => {
  return request.get('/admin/interview/query', {
    params: data
  })
}
// 添加文章
export const createArticleApi = data => {
  return request.post('/admin/interview/create', data)
}

// 删除文章
export const removeArticleApi = id => {
  return request.delete('/admin/interview/remove', {
    data: {
      id
    }
  })
}
// 根据id获取面经详情
export const getArticleDetailApi = id => {
  return request.get('/admin/interview/show', {
    params: {
      id
    }
  })
}

// 修改文章
export const updateArticleApi = data => {
  return request.put('/admin/interview/update', data)
}
